import {
	Tile as TileLayer,
	Vector as VectorLayer
} from 'ol/layer';

import {
	XYZ,
	Vector
} from 'ol/source';

const createTileLayer = function(url) {
	return new TileLayer({
		title: "谷歌卫星图",
		source: new XYZ({
			crossOrigin: 'Anonymous',
			maxZoom: 18,
			projection: 'EPSG:3857',
			url: url
		})
	});
}

export {
	createTileLayer
};
